<template>
  <div class="w-75 m-auto mt-4">
    <view-req :currentPage="currentPage" :tokens="tokens" urlBase="/view/" :user="user" :columns="columns"></view-req>
  </div>
</template>

<script>
import ViewReq from '../components/ViewReq.vue';

export default {
  components: {
    ViewReq
  },
  props: {
    tokens: Object,
    user: Object,
    currentPage: Number,
  },
  data() {
    return {
      columns: this.user.role != "user" ? undefined : ['id', 'topic', 'current_status'],
    }
  }
};
</script>

<style>
</style>